package com.laicunba.pojo;

import org.springframework.stereotype.Component;

import com.laicunba.annotation.MyColumn;
import com.laicunba.annotation.MyTable;

@MyTable
@Component
public class MessageDO extends BaseDO {

	@MyColumn(type = "text")
	private String content;
	private String name;
	private String type; // q,t
	private String tid;// 分步式事务id
	@MyColumn(type = "int DEFAULT 0")
	private int consumeCount; // 消费次数;
	
	private String resp;
	
	public void setResp(String resp) {
		this.resp = resp;
	}
	public String getResp() {
		return resp;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTid() {
		return tid;
	}

	public void setTid(String tid) {
		this.tid = tid;
	}

	public int getConsumeCount() {
		return consumeCount;
	}

	public void setConsumeCount(int consumeCount) {
		this.consumeCount = consumeCount;
	}

	@Override
	public String toString() {
		return "MessageDO [content=" + content + ", name=" + name + ", type=" + type + ", tid=" + tid + ", consumeCount=" + consumeCount + "]";
	}
	
}
